package com.ciquan.server.service;

import com.ciquan.server.bean.Message;
import com.ciquan.server.bean.UnReply;

import java.util.List;

/**
 * Created by kakalee on 15/1/10.
 */
public interface MessageService {

    List<Integer> selectWorks();

    List<Message> selectUserMessage(Integer userId);

    List<Integer> selectUsers(Integer worksId, Integer userId);

    List<Message> selectReceiveUsers(Integer worksId, Integer userId);

    List<Message> selectMessage(Integer worksId, Integer userId);

    Message selectLastMessage(Integer worksId, Integer userId);

    int unRead(Integer worksId, Integer userId);

    List<UnReply> unReply(String startTime, String endTime);
}
